<?php
/**
 * Creater: 李青林
 * Date Time : 2018/8/16 16:30
 */

namespace App\Http\Models;


class UserKillStatus extends BaseModel
{
    protected $table = 'users_kill_status';
    protected $guarded = [];

    public  static function AddKillStatus($userId){
        $killinfo=self::where(['user_id'=>$userId])->first();
        if(!$killinfo){
            $killinfo= self::create(['user_id'=>$userId,'status'=>0]);
        }
        return $killinfo->id;
    }
}